package fm.last.api
{
    import fm.last.BaseTC;
    

    public class EventAPITest extends BaseTC
    {
        
        
        public function EventAPITest()
        {
            super();
            addTest("testAttend");  
            addTest("testGetAttendees");   
            addTest("testGetInfo");
            addTest("testGetShouts");
                        
            /* open comments if you want to test them */
            //addTest("testShare");
            //addTest("testShout");       
        }
     
     
        public function testAttend():void
        {    
            lfm_service.event.attend(okNoContent, unexpectedError, "328799", 1);        
        }  
        
        public function testGetAttendees():void
        {
            lfm_service.event.getAttendees(expectedPattern("/lfm/attendees"), unexpectedError, "328799");
        }    
        
        public function testGetInfo():void
        {
            lfm_service.event.getInfo(expectedPattern("/lfm/event/id", /328799/), unexpectedError, "328799");
        }
        
        public function testGetShouts():void
        {
            lfm_service.event.getShouts(expectedPattern("/lfm/shouts"), unexpectedError, "328799");
        }
        public function testShare():void
        {
            lfm_service.event.share(okNoContent, unexpectedError, "328799", "vixplore", "test share");
        }
        public function testShout():void
        {
            lfm_service.event.shout(okNoContent, unexpectedError, "328799", "");
        }
    }
}